package com.demoworld;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * Description
 * <p>
 * </p>
 * DATE 2018/5/22.
 *
 * @author liwei5.
 */
public class Main {
    public static void main(String[] ars) {
        ApplicationContext context = new AnnotationConfigApplicationContext(EmailListener.class);
        EmailEvent event = new EmailEvent("hello", "boylmx@163.com", "this is a email text!");
        context.publishEvent(event);
    }
}
